package io.persimmon.core.entity;

import io.persimmon.core.entity.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RetryEntity implements BaseEntity {
    private int retryCount;

    public boolean isRetryable(int maxCount) {
        return retryCount < maxCount;
    }
}
